<h2>Category Update</h2>
<?php echo form_open('blogadmin/update_category/');?>
<table class="datatable" >
<?php foreach ($record as $field){?>
<input type="hidden" id="category_id" name="category_id" value="<?php echo $field->category_id?>"></input>
  <tr>
    <th>Categor Name</th>
    <td><?php echo form_input('category_name',$field->category_name);?></td>
  </tr>
  <tr>
    <th>Category Basename</th>
    <td><?php echo form_input('category_basename',$field->category_basename);?></td>
  </tr>
  <tr>
    <th>Category Description</th>
    <td><?php echo form_input('category_description',$field->category_description);?></td>
  </tr>
  <tr>
    <th>Category Parent</th>
    <td>
    	<select	id="category_parent" name="category_parent">
    		<option value="1" selected="selected">NONE</option>
    		<?php foreach ($records as $rows){?>
    		<option value="<?php echo $rows->category_id;?>"><?php echo $rows->category_name;?></option>
    		<?php }?>
    	</select>
    </td>
  </tr>
  <?php }?>
  <tr>
    <td><?php echo form_submit('submit','Save to Database');?></td>
  </tr>
</table>
<?php echo form_close();?>
